package org.zoomdev.android.rn.bugly;

import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class BuglyPackager implements ReactPackage {

    private String appId;
    private boolean debug;

    public BuglyPackager(String appId,boolean debug){
        this.appId = appId;
        this.debug = debug;
    }

    @Override
    public List<NativeModule> createNativeModules(ReactApplicationContext reactApplicationContext) {
        return Arrays.asList((NativeModule)new BuglyModule(reactApplicationContext,appId,debug));
    }

    @Override
    public List<ViewManager> createViewManagers(ReactApplicationContext reactApplicationContext) {
        return Arrays.asList();
    }


    public List<Class<? extends JavaScriptModule>> createJSModules() {
        return Arrays.asList();
    }
}
